namespace Cik.Gapi4Net.Domain.Input
{
    using System.Text;
    using Contract;

    public class Local : EntityBase, ILocal
    {
        public string SeparatedLatitudeLongitude { get; set; }

        public string Sspn { get; set; }

        // Mrt type
        public string Mrt { get; set; }

        public override string SearchWebUrl()
        {
            var builder = new StringBuilder();

            if (string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Version))
                return string.Empty;

            builder.AppendFormat("v={0}&q={1}", Version, Query);

            return builder.ToString();
        }
    }
}